package BasicCmIRPConstDefs;
/**
 * Generated from IDL enum "ModifyOperator".
 *
 * @author JacORB IDL compiler V 2.3.0, 17-Feb-2007
 * @version generated at 2013-5-20 22:07:19
 */

public final class ModifyOperator
	implements org.omg.CORBA.portable.IDLEntity
{
	private int value = -1;
	public static final int _REPLACE = 0;
	public static final ModifyOperator REPLACE = new ModifyOperator(_REPLACE);
	public static final int _ADD_VALUES = 1;
	public static final ModifyOperator ADD_VALUES = new ModifyOperator(_ADD_VALUES);
	public static final int _REMOVE_VALUES = 2;
	public static final ModifyOperator REMOVE_VALUES = new ModifyOperator(_REMOVE_VALUES);
	public static final int _SET_TO_DEFAULT = 3;
	public static final ModifyOperator SET_TO_DEFAULT = new ModifyOperator(_SET_TO_DEFAULT);
	public int value()
	{
		return value;
	}
	public static ModifyOperator from_int(int value)
	{
		switch (value) {
			case _REPLACE: return REPLACE;
			case _ADD_VALUES: return ADD_VALUES;
			case _REMOVE_VALUES: return REMOVE_VALUES;
			case _SET_TO_DEFAULT: return SET_TO_DEFAULT;
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	public String toString()
	{
		switch (value) {
			case _REPLACE: return "REPLACE";
			case _ADD_VALUES: return "ADD_VALUES";
			case _REMOVE_VALUES: return "REMOVE_VALUES";
			case _SET_TO_DEFAULT: return "SET_TO_DEFAULT";
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	protected ModifyOperator(int i)
	{
		value = i;
	}
	java.lang.Object readResolve()
	throws java.io.ObjectStreamException
	{
		return from_int(value());
	}
}
